import { Component, OnInit } from '@angular/core';
import { RenewService } from "./renew.service";

@Component({
  selector: 'app-renew',
  templateUrl: './renew.component.html',
  styleUrls: ['./renew.component.scss'],
  providers: [RenewService]
})
export class RenewComponent implements OnInit {
  // 列表数据
  public listData: any;
  // 请求体
  public getBody = {
    pageIndex: 0,
    pageSize: 0,
    nFundNo: '',
    sType: '2'
  }
  constructor(
    public renewService: RenewService
  ) { }

  ngOnInit() {
    this.getRenew();
  }
  // 获取续约流水
  getRenew() {
    let that = this;
    this.renewService.getRenew(this.getBody).subscribe(data => {
      if (data) {
        that.listData = data.list;
      }
    })
  }
}
